﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BestLifePOS_Core.Data.Commands;
using BestLifePOS_Core.DomainObjects;

namespace BestLifePOS_Core.Data.Facades
{
   public class Sub_CategoryDAO
    {

       public static List<Sub_Category> GetAllSubcategories()
       {
           BestLifeGetAllSubCategoryDataAction LvGet = new BestLifeGetAllSubCategoryDataAction();
           return LvGet.execute();
       }

       public static List<Sub_Category> GetSubcategoriesById(string PSubCat)
       {
           BestLifeSubCategoryByIDDataAction LvGet = new BestLifeSubCategoryByIDDataAction(PSubCat);
           return LvGet.execute();
       }

       public static string GetNewSubCategory()
       {
           BestLifeGetNewSubCategoryDataAction LvGet = new BestLifeGetNewSubCategoryDataAction();
           return LvGet.execute();
       }

       public static int SaveSubCategory(Sub_Category PSubCate)
       {
           BestLifeInsertSubCategoryDataAction LvGet = new BestLifeInsertSubCategoryDataAction(PSubCate);
           return LvGet.execute();
       }
    }
}
